import { observable } from 'mobx'
import Taro from '@tarojs/taro'

const commonStore = observable({
  navigationHeight: 110, // 自定义导航栏高度
  siteConfig: {},
  studentPath: [],
  teacherPath: [],
  gradeList: [], // 年级列表
  todayDateInfo: {}, // 今天日历信息
  areaList: [], // 地区列表
  setTodayDateInfo(todayDateInfo) {
    this.todayDateInfo = todayDateInfo
  },
  getSiteConfig() {
    return new Promise((resolve) => {})
  },
  setNavigationHeight(navigationHeight) {
    this.navigationHeight = navigationHeight
  },
  saveGradeList(list) {
    this.gradeList = list
  },
  saveAreaList(list) {
    this.areaList = list
  }
})

export default commonStore
